package com.qys.livesMall.finance.service;


import com.qys.livesMall.finance.model.dto.AccountSearch;
import com.qys.livesMall.finance.model.dto.shop.AddShopAccount;
import com.qys.livesMall.finance.model.entity.shop.FinanceShopAccount;
import com.qys.livesMall.framework.view.QysPage;


import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 店铺余额表 服务类
 * </p>
 *
 * @author
 * @since 2023-06-06
 */
public interface FinanceShopAccountService extends AccountService{

    /**
     * 创建
     * @param userId
     * @param shopId
     */
    void create(Long userId,Long shopId);

    void createBatch(List<AddShopAccount> shops);

    /**
     * 获取
     * @return
     */
    FinanceShopAccount get(Long userId);

    /**
     * 分页列表
     * @param search
     * @return
     */
    QysPage<FinanceShopAccount> list(AccountSearch search);

    List<FinanceShopAccount> listByUserIds(List<Long> userIds);


    List<FinanceShopAccount> liatByShopIds(List<Long> shopIds);

    BigDecimal getTotalBalance(Integer userSysType);

    List<Long> listByUserIds(List<Long> userIds,BigDecimal minBalance,BigDecimal maxBalance);

    List<Long> listShopIdByLessBalance(List<Long> shopIds,BigDecimal balance);
}
